from appium.webdriver.common.appiumby import AppiumBy

from base.wework_app import WorkPage
from page.group_page import GroupPage


class NewsPage(WorkPage):
    _group = AppiumBy.XPATH, "//*[@text='通讯录']"

    # 通讯录功能
    def group(self):
        self.find_ele_click(self._group)
        return GroupPage(self.driver)
